package com.imooc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value="/hello")
public class HelloController {

    @Value("${cupSize}")
    private String cupSize;
    @Value("${age}")
    private String age;
//    @Value("${content}")
//    private String content;

    @Autowired
    private Girlproperties girlproperties;

//    @RequestMapping(value = "/say",method = RequestMethod.GET)
    @GetMapping(value="/say")
    public String say(@RequestParam(value = "id",required = false,defaultValue = "43343") Integer id){
        return "id:"+id;
//            return girlproperties.getCupSize();
////        return "index";
    }
}
